package com.st.springbootswagger.service.impl;

import com.st.springbootswagger.domain.SysUser;
import com.st.springbootswagger.service.SysUserService;
import com.st.springbootswagger.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangli
 * @description 针对表【sys_user(用户信息表)】的数据库操作Service实现
 * @createDate 2023-09-22 14:11:59
 */
@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    SysUserMapper sysUserMapper;

    @Override
    public Object deleteById(String userId) {
        return sysUserMapper.deleteByPrimaryKey(Long.valueOf(userId));
    }

    @Override
    public List<SysUser> paginQuery(SysUser sysUser) {
        return sysUserMapper.getList();
    }
}




